package mspbots.qbd.data.online.customer;

import org.springframework.data.r2dbc.repository.R2dbcRepository;
import reactor.core.publisher.Mono;


/**
 * @author Jay.Yang
 */
public interface OnlineCustomerRepository extends R2dbcRepository<OnlineCustomer, Long> {

    /**
     * find entity other id and tenant id
     *
     * @param otherId  other Id
     * @param tenantId tenant id
     * @return Customer entity
     */
    Mono<OnlineCustomer> findByOtherIdAndTenantId(Long otherId, Long tenantId);
}
